package mq.rabbitmq.direct;

import java.io.IOException;
import java.util.concurrent.TimeoutException;

public class RoterGT0LT10 {
    public static void main(String[] args) {
        new Thread(()->{
            try {
                Router.subscribe(Router.QUEUE_NAME_GT0_LT10,Router.ROUTER_KEY_GT0_LT10);
            } catch (IOException e) {
                e.printStackTrace();
            } catch (TimeoutException e) {
                e.printStackTrace();
            }
        }).start();
    }
}
